def fun(v):
    english=space=number=other=0
    for i in v:
        if'A'<=i<='Z':
            english+=1
        elif'a'<=i<='z':
            english+=1
        elif '0' <= i <= '9':
            number += 1
        elif i==' ':
            space += 1
        else:
            other+=1
    print('英文字母的个数为：'+str(english))
    print('空格的个数为：' + str(space))
    print('数字的个数为：' + str(number))
    print('其他字符的个数为：' + str(other))

fun(input("请输入一个句子："))